<?php
declare (strict_types=1);

namespace app\model;

use think\Model;
use think\model\concern\SoftDelete;
use app\traits\ModelTrait;

/**
 * 用户
 * Class User
 * @package app\model
 */
class Promotion extends BaseModel
{
    public static $_table = "promotion";

    use SoftDelete;
    //时间字段显示格式
    protected $dateFormat = 'Y-m-d H:i:s';
    // 开启自动写入时间戳字段
    //protected $autoWriteTimestamp = 'datetime';
    //软删除时间
    protected $deleteTime = false;
    //软删除字段的默认值
    protected $defaultSoftDelete = 0;
    //只读字段，不允许被更改
    protected $readonly = [];
    //数据输出隐藏的属性
//    protected $hidden = ['user_id'];
    protected $pk = 'id';
    // 设置当前模型对应的完整数据表名称
    protected $table = 'promotion';
    //据输出显示的属性
    public static $showField = ['id', 'active_brokerage', 'charge_brokerage', 'trackingCode', 'create_time'];

    use ModelTrait;
}

